//测试用
var scenes = {
	quanjing:"http://cpc.sjtu.edu.cn/map/maps/quanjing.swf",
	baiyangdian:"http://cpc.sjtu.edu.cn/map/maps/baiyangdian.swf",
	hehua:"http://cpc.sjtu.edu.cn/map/maps/hehua.swf",
	yiguo:"http://cpc.sjtu.edu.cn/map/maps/yiguo.swf"};
	
var placeHtml = {
	def:"您现在的位置是：<a href='javascript:void(0);'>首页</a>",
	baiyangdian:{
		def:"><a href=\"javascript:loadScene('quanjing',0);\">白洋淀景区</a>",
		baiyangdian:"><a href=\"javascript:loadScene('baiyangdian',1)\">白洋淀文化苑</a>",
		hehua:"><a href=\"javascript:loadScene('hehua',2);\">荷花大观园</a>",
		yiguo:"><a href=\"javascript:loadScene('yiguo',3);\">异国风情园</a>"
	},
	minsu:{
		def:"><a href=\"javascript:loadScene('quanjing',0);\">民俗活动</a>"
	},
	lvyou:{
		def:"><a href=\"javascript:loadScene('quanjing',0);\">旅游路线</a>"
	}
};
	
function loadScene(scene) {
	var html = placeHtml.def;
	
	if(arguments[1]){
		var app = arguments[1];
		html += placeHtml[app].def;
		
		if(arguments[2]){
			var id = arguments[2];
			html += placeHtml[app][id];
		}
	}
	
	alert(html);
}

function showLib(){
	alert(scenes["quanjing"]);
}